package com.cx.purchase.subclass.mapper;



import com.cx.purchase.subclass.model.Subclass;
import com.cx.purchase.util.PageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SubclassMapper {
/*
    @Insert("insert into subclass(code,name,status,remark) values(#{code},#{name},#{status},#{remark})")
*/
    void add(Subclass subclass1);

    int delete(Integer id);

    List<Subclass> queryData(PageVo pageVo);

    int queryCount(PageVo pageVo);

    Subclass queryByName(String name);

    Subclass queryByCode(String code);

    Subclass queryById(Integer id);

    void updateStatus(Subclass subclass1);

    void update(Subclass subclass1);
}
